package com.woniuxy.productmodel.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商家端修改团课课程产品的参数对象
 */
@Data
public class UpdateTeamProductForm {
    /**
     *团课产品Id
     */
    @Min(value = 1)
    @NotNull(message = "产品id不为空")
    private Integer teamProductId;
    /**
     * 团课产品名
     */
    @NotBlank(message = "产品名称不为空")
    private String teamProductName;

    /**
     * 团课价格
     */
    @Min(value = 1)
    @NotNull(message = "产品价格为正数")
    private BigDecimal teamProductPrice;

    /**
     * 开课人数
     */
    @Min(value = 1)
    @NotNull(message = "开课人数为正整数")
    private Integer openNum;

    /**
     * 最大人数
     */
    @Min(value = 1)
    @NotNull(message = "最大人数为正整数")
    private Integer maxNum;

    /**
     * 课程总课时
     */
    @Min(value = 1)
    @NotNull(message = "课程总课时为正整数")
    private Integer courseCount;

    /**
     * 课程类别id
     */
    @Min(value = 1)
    @NotNull(message = "课程类型id为正整数")
    private Integer courseTypeId;

    /**
     * 团队产品描述
     */
    @NotBlank(message = "产品描述不为空")
    private String teamProductDesc;

    /**
     * 教练id
     */
    @Min(value =1)
    @NotNull(message = "教练id为正整数")
    private Integer coachId;

}
